#-------------------------------------------------
#
# Project created by QtCreator 2022-03-25T09:40:10
#
#-------------------------------------------------

QT       += core gui network sql
CONFIG += serialport
#CONFIG += PC
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets serialport

TARGET = /home/mcgs/App/CheckWeighter
TEMPLATE = app

DEFINES += SETTINGS_USE_DBC

include(cov.pri)


LIBS += -lgcov
!contains(CONFIG,PC){
    LIBS += $$PWD/../lib/libLanguageInput.so
    LIBS +=-L/home/mcgs/sdk/sdk30212/lib -lmcgs-hal
}
INCLUDEPATH += $$PWD/../lib/ \
               common/gui/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/LINUXTCP/port/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/LINUXTCP/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/modbus/include/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/modbus/ascii/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/modbus/rtu/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/modbus/tcp/
INCLUDEPATH+= $$PWD/freemodbus-v1.5.0/
QMAKE_CXXFLAGS += --coverage
QMAKE_CXXFLAGS += -std=c++0x #c++11

SOURCES += main.cpp\
        mainwidget.cpp \
    common/touch_calibration.cpp \
    common/touch_calibration_nine.cpp \
    settings/comsettingwidget.cpp \
    settings/serversetting.cpp \
    communication/tcpclient.cpp \
    common/gui/tdialog.cpp \
    optiondialog.cpp \
    common/gui/mymessagedialog.cpp \
    database/database.cpp \
    database/databasequery.cpp \
    database/dbtabbase.cpp \
    database/dbtabdatabaseinfo.cpp \
    database/dbtabuser.cpp \
    dataview/usermodel.cpp \
    dataview/userdelegate.cpp \
    common/gui/myView/abcdialog.cpp \
    common/gui/myView/abclistview.cpp \
    common/gui/myView/abclistviewbar.cpp \
    common/gui/myView/abctableview.cpp \
    common/gui/myView/listviewwithtitle.cpp \
    common/gui/myView/pagetableview.cpp \
    common/gui/myView/tlistview.cpp \
    common/gui/myView/ttableview.cpp \
    settings/parametersettings.cpp \
    settings/itemwithlabel.cpp \
    settings/itembase.cpp \
    settings/itemwithcbx.cpp \
    settings/calibrationwidget.cpp \
    common/gui/input/numberkey.cpp \
    common/gui/input/newnumberkey.cpp \
    common/gui/input/numberkeyboard.cpp \
    common/gui/input/dateinputkey.cpp \
    common/gui/input/hintlineedit.cpp \
    communication/clienthandler.cpp \
    communication/tcpserver.cpp \
    myserialport/iscaleadaptor.cpp \
    myserialport/spscaleadaptor.cpp \
    database/dbtabproduct.cpp \
    database/dbtabtabversion.cpp \
    EditorWidgets/editwidget.cpp \
    dataview/productmodel.cpp \
    dataview/productdelegate.cpp \
    dataview/basedelegate.cpp \
    EditorWidgets/producteditor.cpp \
    settings/itemwithle.cpp \
    EditorWidgets/baseeditor.cpp \
    EditorWidgets/usereditor.cpp \
    login/logindialog.cpp \
    settings/IOSettings/input.cpp \
    settings/IOSettings/inputfunction.cpp \
    settings/IOSettings/inputsetitem.cpp \
    settings/IOSettings/insettingdlg.cpp \
    settings/IOSettings/iofunctiontest.cpp \
    settings/IOSettings/iosettingwidget.cpp \
    settings/IOSettings/output.cpp \
    settings/IOSettings/outputfunction.cpp \
    settings/IOSettings/outputsetitem.cpp \
    settings/IOSettings/outsettingdlg.cpp \
    settings/IOSettings/outputtestitem.cpp \
    settings/IOSettings/inputtestitem.cpp \
    classifierwidget.cpp \
    settings/comsettingdlg.cpp \
    myserialport/myserialport.cpp \
    settings/networkSettings/ipsetting.cpp \
    common/gui/valueshowwidget.cpp \
    settings/systemsettingwidget.cpp \
    database/dbtabclassifierproduct.cpp \
    dataview/classifierproductmodel.cpp \
    dataview/classifierprtdelegate.cpp \
    EditorWidgets/classifierprteditor.cpp \
    EditorWidgets/rangeedititem.cpp \
    EditorWidgets/classifierselector.cpp \
    EditorWidgets/classifiereditor.cpp \
    EditorWidgets/tableitemdeleter.cpp \
    database/dbtabrecordhlo.cpp \
    database/dbtabrecordclass.cpp \
    RecordWidget/recordwidget.cpp \
    dataview/recordhlomodel.cpp \
    dataview/recordclassmodel.cpp \
    checkvaluewidget.cpp \
    valueshowitem.cpp \
    classvaluewidget.cpp \
    checkvaluecontainer.cpp \
    classvaluecontainer.cpp \
    ImportExport/exporttool.cpp \
    freemodbus-v1.5.0/mbreghandler.cpp \
    freemodbus-v1.5.0/LINUXTCP/modbus.cpp \
    freemodbus-v1.5.0/LINUXTCP/port/portevent.c \
    freemodbus-v1.5.0/LINUXTCP/port/portother.c \
    freemodbus-v1.5.0/LINUXTCP/port/porttcp.c \
    freemodbus-v1.5.0/modbus/ascii/mbascii.c \
    freemodbus-v1.5.0/modbus/functions/mbfunccoils.c \
    freemodbus-v1.5.0/modbus/functions/mbfuncdiag.c \
    freemodbus-v1.5.0/modbus/functions/mbfuncdisc.c \
    freemodbus-v1.5.0/modbus/functions/mbfuncholding.c \
    freemodbus-v1.5.0/modbus/functions/mbfuncinput.c \
    freemodbus-v1.5.0/modbus/functions/mbfuncother.c \
    freemodbus-v1.5.0/modbus/functions/mbutils.c \
    freemodbus-v1.5.0/modbus/rtu/mbcrc.c \
    freemodbus-v1.5.0/modbus/rtu/mbrtu.c \
    freemodbus-v1.5.0/modbus/tcp/mbtcp.c \
    freemodbus-v1.5.0/modbus/mb.c \
    common/tsettings/tsettings.cpp \
    database/dbtabsettings.cpp \

HEADERS  += mainwidget.h \
    common/common.h \
    common/sqlite3.h \
    common/touch_calibration.h \
    common/touch_calibration_nine.h \
    settings/comsettingwidget.h \
    settings/serversetting.h \
    communication/tcpclient.h \
    common/gui/tdialog.h \
    optiondialog.h \
    common/floatcompara.h \
    common/tdebug.h \
    common/gui/mymessagedialog.h \
    database/database.h \
    database/databasequery.h \
    database/dbtabbase.h \
    database/dbtabdatabaseinfo.h \
    database/dbtabuser.h \
    dataview/usermodel.h \
    dataview/userdelegate.h \
    common/gui/myView/abcdialog.h \
    common/gui/myView/abclistview.h \
    common/gui/myView/abclistviewbar.h \
    common/gui/myView/abctableview.h \
    common/gui/myView/listviewshowitem.h \
    common/gui/myView/listviewwithtitle.h \
    common/gui/myView/pagetableview.h \
    common/gui/myView/tlistview.h \
    common/gui/myView/ttableview.h \
    settings/parametersettings.h \
    settings/itemwithlabel.h \
    settings/itembase.h \
    settings/itemwithcbx.h \
    settings/calibrationwidget.h \
    common/gui/input/numberkey.h \
    common/gui/input/newnumberkey.h \
    common/gui/input/numberkeyboard.h \
    common/gui/input/dateinputkey.h \
    common/gui/input/hintlineedit.h \
    communication/clienthandler.h \
    communication/tcpserver.h \
    myserialport/iscaleadaptor.h \
    myserialport/spscaleadaptor.h \
    database/dbtabproduct.h \
    database/dbtabtabversion.h \
    EditorWidgets/editwidget.h \
    dataview/productmodel.h \
    dataview/productdelegate.h \
    dataview/basedelegate.h \
    EditorWidgets/producteditor.h \
    settings/itemwithle.h \
    EditorWidgets/baseeditor.h \
    EditorWidgets/usereditor.h \
    login/logindialog.h \
    check_output.h \
    settings/IOSettings/input.h \
    settings/IOSettings/inputfunction.h \
    settings/IOSettings/inputsetitem.h \
    settings/IOSettings/insettingdlg.h \
    settings/IOSettings/iofunctiontest.h \
    settings/IOSettings/iosettingwidget.h \
    settings/IOSettings/output.h \
    settings/IOSettings/outputfunction.h \
    settings/IOSettings/outputsetitem.h \
    settings/IOSettings/outsettingdlg.h \
    settings/IOSettings/outputtestitem.h \
    settings/IOSettings/inputtestitem.h \
    classifierwidget.h \
    settings/comsettingdlg.h \
    myserialport/myserialport.h \
    settings/networkSettings/ipsetting.h \
    common/gui/valueshowwidget.h \
    database/dbtabbase1.h \
    settings/systemsettingwidget.h \
    database/dbtabclassifierproduct.h \
    dataview/classifierproductmodel.h \
    dataview/classifierprtdelegate.h \
    EditorWidgets/classifierprteditor.h \
    EditorWidgets/rangeedititem.h \
    EditorWidgets/classifierselector.h \
    EditorWidgets/classifiereditor.h \
    EditorWidgets/tableitemdeleter.h \
    database/dbtabrecordhlo.h \
    database/dbtabrecordclass.h \
    RecordWidget/recordwidget.h \
    dataview/recordhlomodel.h \
    dataview/recordclassmodel.h \
    checkvaluewidget.h \
    valueshowitem.h \
    classvaluewidget.h \
    checkvaluecontainer.h \
    classvaluecontainer.h \
    ImportExport/exporttool.h \
    freemodbus-v1.5.0/mbreghandler.h \
    freemodbus-v1.5.0/LINUXTCP/modbus.h \
    freemodbus-v1.5.0/LINUXTCP/port/port.h \
    freemodbus-v1.5.0/modbus/ascii/mbascii.h \
    freemodbus-v1.5.0/modbus/include/mb.h \
    freemodbus-v1.5.0/modbus/include/mbconfig.h \
    freemodbus-v1.5.0/modbus/include/mbframe.h \
    freemodbus-v1.5.0/modbus/include/mbfunc.h \
    freemodbus-v1.5.0/modbus/include/mbport.h \
    freemodbus-v1.5.0/modbus/include/mbproto.h \
    freemodbus-v1.5.0/modbus/include/mbutils.h \
    freemodbus-v1.5.0/modbus/rtu/mbcrc.h \
    freemodbus-v1.5.0/modbus/rtu/mbrtu.h \
    freemodbus-v1.5.0/modbus/tcp/mbtcp.h \
    common/tsettings/tsettings.h \
    database/dbtabsettings.h \

FORMS    += mainwidget.ui \
    settings/comsettingwidget.ui \
    settings/serversetting.ui \
    optiondialog.ui \
    common/gui/mymessagedialog.ui \
    common/gui/myView/abclistview.ui \
    common/gui/myView/abctableview.ui \
    common/gui/myView/listviewwithtitle.ui \
    common/gui/myView/pagetableview.ui \
    settings/parametersettings.ui \
    settings/itemwithlabel.ui \
    settings/itembase.ui \
    settings/itemwithcbx.ui \
    settings/calibrationwidget.ui \
    common/gui/input/numberkey.ui \
    common/gui/input/newnumberkey.ui \
    common/gui/input/numberkeyboard.ui \
    common/gui/input/dateinputkey.ui \
    EditorWidgets/editwidget.ui \
    EditorWidgets/producteditor.ui \
    settings/itemwithle.ui \
    EditorWidgets/usereditor.ui \
    login/logindialog.ui \
    settings/IOSettings/inputsetitem.ui \
    settings/IOSettings/insettingdlg.ui \
    settings/IOSettings/iofunctiontest.ui \
    settings/IOSettings/iosettingwidget.ui \
    settings/IOSettings/outputsetitem.ui \
    settings/IOSettings/outsettingdlg.ui \
    settings/IOSettings/outputtestitem.ui \
    settings/IOSettings/inputtestitem.ui \
    classifierwidget.ui \
    common/gui/input/dateinputkey.ui \
    settings/comsettingdlg.ui \
    settings/networkSettings/ipsetting.ui \
    common/gui/valueshowwidget.ui \
    settings/systemsettingwidget.ui \
    EditorWidgets/classifierprteditor.ui \
    EditorWidgets/rangeedititem.ui \
    EditorWidgets/classifierselector.ui \
    EditorWidgets/classifiereditor.ui \
    EditorWidgets/tableitemdeleter.ui \
    RecordWidget/recordwidget.ui \
    checkvaluewidget.ui \
    valueshowitem.ui \
    classvaluewidget.ui

contains(CONFIG,PC){
    DEFINES += PC_DEVICE
    SOURCES-=   common/touch_calibration.cpp \
                common/touch_calibration_nine.cpp
    HEADERS-=  common/touch_calibration.h \
                common/touch_calibration_nine.h
}


INSTALLS += target
target.path=/root

DISTFILES += \
    cov.pri \
    cov.pri

RESOURCES += \
    res.qrc
